<template>
  <div>
    <p>{{ age }}</p>
    <button @click="changAge">改变年龄</button>
  </div>
</template>
<script setup lang="ts">
let age = 18
const changAge = () => {
  age++
  console.log(age)
}
</script>
